//
//  Extension.swift
//  Demo3
//
//  Created by Bigboss on 2025/3/7.
//

import SwiftUI
import RealityKit
import ARKit

// MARK: - 扩展
extension Float {
    var degreesToRadians: Float { self * .pi / 180 }
}

extension SIMD3 where Scalar == Float {
    var normalized: SIMD3<Float> {
        let length = sqrt(x*x + y*y + z*z)
        return SIMD3(x/length, y/length, z/length)
    }
}
